<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'Feeling okay, I guess',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<section id="dreams">
	<h2>Dream journal</h2>
	<p>
		I had a bizarre dream.
		A powerful, villainous sorcerer had swapped bodies with with me prior to the dream in an effort to use my body as a disguise and infiltrate the resistance to their takeover.
		It didn&apos;t work.
		They were captured, and I, in their body and with their powers, was a member of this resistance.
		The part of the dream I remember starts with me going to them and taking mercy on them.
		I swapped our bodies back instead of ending them, so they turned on me.
		They left the arena (it was like a colosseum, or something) where they had been going to be executed before I pardoned them, now in their own body, and now with my team mates thinking they were me.
	</p>
	<p>
		They swapped bodies with a large, strong-looking person, and I was somehow another character of the dream, another member of the team.
		The sorcerer muttered something about being Ugor, so someone replies that yes, they are Ugtor, king of the wearwolves.
		The sorcerer replies &quot;There will be no werewolves.&quot; before taking their metal, claw-like hand attachments (a sort of weapon in which the wielder wraps their fists in them and uses three long, protruding blades to slash and stab) to stab themself, currently in the body of this werewolf king.
		All other werewolves, likewise in human form but with claw weapons, both those that saw this and didn&apos;t, start following suit, often with others getting caught with someone between the werewolf and the blades and getting killed as well.
		I got killed this way very painfully several times, each time becoming someone new.
		I tried to warn the others to stay away from the werewolves, and I tried to escape, but to no avail.
	</p>
	<p>
		Eventually, I forced myself to wake up to escape the pain.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		I was very sick when I went to bed last night.
		I was nearly vomiting and I hat a terrible headache.
		I thought today would be terrible, and my efforts to complete the coursework due today would be a struggle.
		I woke up fine though, or rather, fine once the pain from the dream world subsided.
		I got everything done without issue.
		Near the end of the day, I took a bit of a break and when out for a bike ride before coming home to format my already-completed assignment submissions and actually hand them in.
		I absent-mindedly glanced at a formula we&apos;ve been working with this week, noticed it wasn&apos;t what I&apos;d used in my submission, and panicked.
		I had less than two hours to completely redo a third of my maths coursework because I&apos;d gotten the formula wrong.
		Taking a closer look though, I was looking at a different formula.
		I&apos;d used the correct one after all and everything was fine.
	</p>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			There seems to be a lot of ancient wisdom like that that gets lost and has to be rediscovered later.
			Sadly, modern-day knowledge gets lost a lot too.
			(For example, indigenous people often know much about how to use native plants for various purposes, but then they get forcibly removed from their homes and the expertise of the local flora is lost.
			We also have people that hoard knowledge for personal gain, keeping it away from the public.)
		</p>
		<p>
			It seems very odd that you can square two sides of a right triangle to get the square of the remaining side.
			I mean, we can see how effectively that works, but have you ever stopped and wondered <strong>*why*</strong>?
			We see a lot of mathematical proofs explaining why different equations work, but I&apos;ve never seen a proof for that one.
		</p>
	</blockquote>
</section>
<section id="Minetest">
	<h2>Minetest log</h2>
	<img src="/y.st./source/y.st./static/img/CC_BY-SA_3.0/minetest.net./weblog/2018/03/21.png" alt="The farm, just before the wheat was fully replaced by cotton" class="framed-centred-image" width="800" height="600"/>
	<p>
		As expected, I now have access to way too may warp points.
		Farming&apos;s actually a lot easier than mining, it turns out, but mining is far more fun.
		To mine, you go on an underground adventure and treasure hunt.
		To farm, you wait.
		And wait.
		And wait.
		Then when it&apos;s time, you go row by row to harvest and replant, node by node.
		Not much fun at all, but very lucrative.
		First, I grew enough cotton seeds that I could eliminate wheat from my field without wasting any land.
		By that point, the limiting factor that prevented further exponential growth is the fact that I don&apos;t have enough dirt in my possession to expand the field.
		Not that I actually want to though; I&apos;m starting to think the field&apos;s too big for me.
		I grew a bunch more cotton by letting the game idle while I worked on coursework, then started replacing the cotton with wheat.
		I don&apos;t yet have enough seeds to fully convert the cotton field to a wheat field, but I will.
		I don&apos;t even know what to do with the wheat, but I&apos;ve got far more cotton than I need at the moment and my cotton-harvesting stat is the highest of the twenty-two stats.
		I need to do something else.
	</p>
	<p>
		I thought I was getting bad luck in my grass-harvesting at first.
		I&apos;d been trying to get grass in my grass field to drop itself instead of wheat seeds.
		That wasn&apos;t working out.
		But then I remembered <code>drop_hack</code>.
		I&apos;ve harvested enough cotton and wheat seeds that it&apos;s nearly impossible to get a grass clump or jungle grass clump to drop itself instead of a seed.
		<code>drop_hack</code> is currently unfinished, so I have no way to toggle the drop amplifier off.
		This is highly inconvenient.
		Also inconvenient is the fact that <code>yellow</code> too is inconvenient.
		I have no way to label warp points, and though I can create more than I can use, I can&apos;t actually warp to any other than the first eight.
		The ninth and beyond fall out of range of the warp menu&apos;s limited page size.
		I need to get those two mods finished when I get a chance.
	</p>
	<p>
		<del>Speaking of <code>drop_hack</code>, I think I&apos;ve figured out how to implement the reversal tool to make nodes drop their special drop less often.
		I basically need to copy the code of drop-getting function and run that outside of <code>minestats</code> the first n-1 tries.
		For the final try, <code>minestats</code> will be allowed to count the drop if it occurs.
		I was thinking at first that the node itself (or the non-seed drop in the case of multi-length grass) could be placed in the player&apos;s inventory without calling the drop handler, in order to bypass <code>minestats</code>, but this isn&apos;t even necessary.
		As long as the drop getter is bypassed within the new drop handler, the drop handler doesn&apos;t need to be.</del>
		<ins>Oh, wait.
		Scratch that.
		I just remembered that the drop handler doesn&apos;t know what player triggered the drop, so it can&apos;t act conditionally.
		<code>drop_hack</code> can&apos;t bypass <code>minestats</code> in this way without killing <code>minestats</code>&apos; ability to count drops not triggered by players.</ins>
	</p>
</section>
END
);
